SET SERVER_NAME=open-webui
SET IMAGE_NAME=ghcr.io/open-webui/open-webui
SET VERSION=main
SET UI_PORT=3000
SET DIR=/c/home/app/docker/%SERVER_NAME%

docker stop %SERVER_NAME%
docker rm %SERVER_NAME%

docker run -d --name %SERVER_NAME% ^
--add-host=host.docker.internal:host-gateway ^
-p %UI_PORT%:8080 ^
-v %DIR%/data/:/app/backend/data ^
--restart=always %IMAGE_NAME%:%VERSION%